{extends file="../acp.html"}

{block name="title"}{$head_title}{/block}
{block name="content"}
<div class="tabs-content" data-origin="additem">
<form method="post" id="form_addAgent" enctype="multipart/form-data">
        <div class="formitems inline">
            <label class="fi-name">发布人：</label>
            <div class="form-controls">
                {$nickname}
                <span class="fi-help-text"></span>
            </div>
        </div>
        <div class="formitems inline">
            <label class="fi-name">发布时间：</label>
            <div class="form-controls">
                {'Y-m-d H:i:s'|date:$view.addtime}
                <span class="fi-help-text"></span>
            </div>
        </div>
        <div class="formitems inline">
            <label class="fi-name">点赞数：</label>
            <div class="form-controls">
                <input type="text" placeholder="0" class="small" name="praise_num" value="{$view.praise_num}">
                <span class="fi-help-text"></span>
            </div>
        </div>
        <div class="formitems inline">
            <label class="fi-name">评论数：</label>
            <div class="form-controls">
                <input type="text" placeholder="0" class="small" name="comment_num" value="{$view.comment_num}">
                <span class="fi-help-text"></span>
            </div>
        </div>
        <div class="formitems inline">
            <label class="fi-name">排序：</label>
            <div class="form-controls">
                <input type="text" placeholder="0" class="small" name="serial" value="{$view.serial}">
                <span class="fi-help-text"></span>
            </div>
        </div>
        <div class="formitems inline">
            <label class="fi-name">内容：</label>
            <div class="form-controls">
                <textarea name="contents" class='large'>{$view.contents}</textarea>
                <span class="fi-help-text"></span>
            </div>
        </div>
        {upload_image_widget($pic_data)}
        <div class="formactions mgl180">
            <input type="hidden" name="act" value="edit">
            <input type="hidden" name="view_id" value="{$view_id}">
            <button class="btn btn-blue"><i class="gicon-ok white"></i>提交</button>
        </div>


</form>
</div>
{/block}
{block name="css"}
{literal}
<style>
    #jpops .fi-name{width:65px;}
    #jpops .form-controls{margin-left:75px;}
    #j-item-extend li{margin-bottom:10px;}
    .edit_item_tip{font-size: 18px;color: #a0a0a0;background-color: inherit;text-decoration: none;margin: 20px 180px;}
</style>
{/literal}
{/block}
{block name="js"}
<script type="text/javascript" src="__ACPJS__/AcpArticle/user_save.js?version={$version}"></script>
<script src="__JS__/jquery/ajaxupload.3.5.js?version={$version}"></script>
<script src="__ACPJS__/AcpItem/add_item_step1.js?version={$version}"></script>
{/block}
